<%-- 
    Document   : index
    Created on : 29/10/2014, 21:06:54
    Author     : marcos
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="usuario" class="com.marcos.beans.UsuarioBean" scope="request"/>
<jsp:setProperty name="usuario" property="*"/>

<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <form action="bienvenido.jsp" method="post">
            Usuario: <input type="text" name="user"><br>
            Password: <input type="password" name="pass"><br>
            <input type="submit" value="Login">
        </form>
        <% 
            String user = usuario.getUsuario();
            String pass = usuario.getPassword();
        %>
    </body>
</html>
